<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@page import="ESP.VO.Role"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <jsp:include page="../include.jsp" flush="true"/>
    <script type="text/javascript">
		function cancel(){
			$('#userform').form('clear');
		}
    	$(function(){
    		$.post('e02!queryE02Head',{user_id:user_id},function(rows){
    			if(rows.returnFlag == 'N'){
    				alert(rows.returnMsg);
    				return false;
    			}
    			$('#userform').form('clear');
				$('#userform').form('load', rows[0]);
				loadbody(user_id);
    		});
    	})
    </script>
  </head>
  <body>
  	<div id="stuwindow" class="easyui-window" title="用户中心>>小组信息" style="padding:6px;"
  			data-options="modal:true,maximizable:true,fit:true,maximizable:false,collapsible:false,
  						  minimizable:false,closable:false,closed:false,draggable:false,resizable:false,inline:false
  					">
  		<center>
		<form id="userform" method="post">
		  	<table border="0" cellspacing="0" cellpadding="0">
		  		<tr>
		  			<td bgcolor="" style="width:120px;" align="right">小组ID：</td>
		  			<td bgcolor="" style="width:120px;" align="left">
		  				<input type="text" name="group_id" id="group_id" readonly="readonly">
		  			</td>
		  			<td bgcolor="" style="width:120px;" align="right">组名：</td>
		  			<td bgcolor="" style="width:120px;" align="left">
		  				<input type="text" name="group_name" id="group_name" readonly="readonly">
		  			</td>
		  			<td bgcolor="" style="width:120px;" align="right">所选课题ID'：</td>
		  			<td bgcolor="" style="width:120px;" align="left">
		  				<input type="text" name="task_id" id="group_task_id" readonly="readonly">
		  			</td>
		  			<td bgcolor="" style="width:120px;" align="right">所选课题：</td>
		  			<td bgcolor="" style="width:120px;" align="left">
		  				<input type="text" name="task_name" id="task_name" readonly="readonly">
		  			</td>
		  			<td bgcolor="" style="width:120px;" align="right">创建时间：</td>
		  			<td bgcolor="" style="width:120px;" align="left">
		  				<input type="text" name="group_cre_time" id="group_cre_time" readonly="readonly">
		  			</td>
		  		</tr>
		  		<tr>
		  			<td bgcolor="" style="width:120px;" align="right">组长学号'：</td>
		  			<td bgcolor="" style="width:120px;" align="left">
		  				<input type="text" name="user_id" id="user_id" readonly="readonly">
		  			</td>
		  			<td bgcolor="" style="width:120px;" align="right">组长姓名：</td>
		  			<td bgcolor="" style="width:120px;" align="left">
		  				<input type="text" name="user_name" id="user_name" readonly="readonly">
		  			</td>
		  			<td bgcolor="" style="width:120px;" align="right">小组人数：</td>
		  			<td bgcolor="" style="width:120px;" align="left">
		  				<input type="text" name="group_total" id="group_total" readonly="readonly">
		  			</td>
		  			<td bgcolor="" style="width:120px;" align="right">备注：</td>
		  			<td bgcolor="" style="width:120px;" align="left">
		  				<input type="text" name="group_note" id="group_note" readonly="readonly">
		  			</td>
		  		</tr>
		  		<!-- 
		  		<tr>
		  			<td colspan="8"></td>
		  			<td align="right"><a href="javascript:void(0)" onclick="update()" class="easyui-linkbutton" id="btn-cancel" icon="icon-edit" plain='true'>编辑</a></td>
		  			<td align="left"><a href="javascript:void(0)" onclick="save()" class="easyui-linkbutton" icon="icon-save" plain='true'>保存</a></td>
		  		</tr>
		  		 -->
			</table>
		</form>
		</center>
		<table id="table_body"></table>
	</div>
	<script type="text/javascript" src="./jquery-easyui-1.3.2/easyloader.js"></script>
	<script type="text/javascript">
		function loadbody(stu_id){
			using('datagrid', function(){
				$('#table_body').datagrid({
					title:'小组成员',
					width:'auto',
					height:'auto',
					fit:true,
					nowrap: false,
					fitColumns:'true',
					fit:true,
					striped: true,
					url:'c03!queryPlanBody?stu_id='+stu_id,
					columns:[[
						{field:'STU_ID',title:'学号',align:'center',width:60},
						{field:'USER_NAME',title:'姓名',align:'center',width:60},
						{field:'STU_MISSION',title:'个人任务',align:'center',editor:'text',width:200}
					]],
					rownumbers:false,
					singleSelect:true
				});
			});
		}
		
	</script>

  </body>
</html>
